package com.atguigu.gmall.feign.pay;

import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-pay")
@RequestMapping("/rpc/inner/payment")
public interface PayFeignClient {

    @GetMapping("/status/{outTradeNo}")
    public Result<String> getOrderStatus(@PathVariable("outTradeNo") String outTradeNo);
}
